//
//  FreightPickerViewController.h
//  nonghubao
//
//  Created by Fenrir on 13-8-26.
//  Copyright (c) 2013年 Chongqing Nonghubao Co., Ltd. All rights reserved.
//

#import "LogisticsManagementViewController.h"

@protocol FreightPickerDelegate <NSObject>

/*!
 @abstract  物流模板被选中后的回调方法
 @param freight 物流模板信息
 */
- (void)freightPicked:(NSDictionary *)freight;

@end

/*!
 @abstract  继承于LogisticsManagementViewController。让用户可以选择任意一个物流模板，同时也可以管理物流模板
 */
@interface FreightPickerViewController : LogisticsManagementViewController<UIAlertViewDelegate>
{
    BOOL _managing;
}
@property (nonatomic, weak) id<FreightPickerDelegate> delegate;

@property (nonatomic) NSInteger selectedFreightId;

- (id)initWithSelectedFreightId:(NSInteger)freightId;
@end
